package com.jone.comic_api.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 * 
 * @author Yanghu
 * @since 2017-06-13
 */
@TableName("comic_chapter")
public class ComicChapter extends Model<ComicChapter> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("source_id")
    private Integer sourceId;
    @TableField("chapter_name")
    private String chapterName;
    @TableField("chapter_page_count")
    private String chapterPageCount;
    @TableField("chapter_order")
    private Integer chapterOrder;
    @TableField("grab_time")
    private Long grabTime;
    @TableField("book_id")
    private Integer bookId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getChapterPageCount() {
        return chapterPageCount;
    }

    public void setChapterPageCount(String chapterPageCount) {
        this.chapterPageCount = chapterPageCount;
    }

    public Integer getChapterOrder() {
        return chapterOrder;
    }

    public void setChapterOrder(Integer chapterOrder) {
        this.chapterOrder = chapterOrder;
    }

    public Long getGrabTime() {
        return grabTime;
    }

    public void setGrabTime(Long grabTime) {
        this.grabTime = grabTime;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
